package com.example.huwang.dialog;

import android.app.Dialog;
import android.content.Context;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

import com.example.huwang.R;


/**
 * Desc:
 */
public class CustomDialog extends Dialog {
    private ImageView close;
    private Context mContext;

    public CustomDialog(Context context) {
        super(context, R.style.msgDialogTheme);
        this.mContext = context;
        setContentView(R.layout.dialog_layout);

        close = (ImageView) findViewById(R.id.close);
    }

    public void show(String s) {
        close.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                dismiss();
            }
        });
        show();
    }

}

